package com.hp.attendance.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 员工表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Employee {

	private Integer id;
	private Integer employee_number;//员工编号:登录账号
	private String name;//姓名
	private String gender;//性别
	private Date birthday;//出生日期
	private String telephone;//联系方式
	private String email;//邮箱
	private String address;//籍贯
	private String photo;//照片
	private String education;//学历
	private Integer department_number;//部门编号
	private Integer position_number;//职称编号
	private Date in_time;//入职时间
	private String password;//密码
	private String notes;//备注



	public Employee(Integer id, String name, String gender, Date birthday, String telephone, String email, String address, String education,Integer department_number,Integer position_number, String password, String notes) {
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.telephone = telephone;
		this.email = email;
		this.address = address;
		this.education = education;
		this.department_number=department_number;
		this.position_number=position_number;
		this.password = password;
		this.notes = notes;
	}




	public Employee(int employee_number, String name,String password, String gender, Date birthday, String telephone, String email, String address, String education, int department_number, int position_number,Date in_time,String notes ) {
		this.employee_number = employee_number;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.telephone = telephone;
		this.email = email;
		this.address = address;
		this.education = education;
		this.department_number=department_number;
		this.position_number=position_number;
		this.password = password;
		this.in_time = in_time;
		this.notes = notes;
	}

	public Employee(int id, String name, String gender, Date birthday, String telephone, String email, String address, String education, String password, String notes) {
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.telephone = telephone;
		this.email = email;
		this.address = address;
		this.education = education;
		this.password = password;
		this.notes = notes;
	}
}
